<template>
  <div id="main">
    <div class="topbar bg-dark py-2 px-3 d-flex ai-center">
      <img src="../assets/logo.png" height="30px">

      <div class="px-2 flex-1">
        <div class="text-white mb-1">王者荣耀</div>
        <div class="text-grey1 fs-xxs">团队成就更多</div>
      </div>
      <button type="button" class="bg-primary btn">立即下载</button>
    </div>

    <div class="navbar bg-primary pt-3 pb-2">
      <div class="nav nav-inverse jc-around">
        <div class="nav-item active">
          <router-link class="nav-link" tag="div" to="/">首页</router-link>
        </div>
        <div class="nav-item">
          <router-link class="nav-link" tag="div" to="/">攻略中心</router-link>
        </div>
        <div class="nav-item">
          <router-link class="nav-link" tag="div" to="/">赛事中心</router-link>
        </div>
        <div class="nav-item">
          <router-link class="nav-link" tag="div" to="/">IP新游</router-link>
        </div>
      </div>
    </div>

    <router-view :key="$route.path"></router-view>
  </div>
</template>

<script>
  export default {
    
  }
</script>

<style lang="scss">
.topbar{
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
}

.navbar {
  margin-top: 46px;
}
</style>